package com.java1412.controller;

import com.java1412.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2023-10-27 16:54:57
 */
@RestController
public class HiController {

    @Resource
    private SchedualServiceHi schedualServiceHi;

    @GetMapping(value = "/hi")
    public String sayHi(
            @RequestParam(value = "name") String name
    ) {
        System.out.println("api-b");
        return schedualServiceHi.sayHiFromClientOne(name);
    }
}
